package com.ow.dva.module.park.service.impl;

import com.ow.dva.config.annotation.DvaCache5M;
import com.ow.dva.module.base.entity.param.DvaPage;
import com.ow.dva.module.base.service.impl.DvaServiceImpl;
import com.ow.dva.module.park.entity.ParkCar;
import com.ow.dva.module.park.mapper.ParkCarMapper;
import com.ow.dva.module.park.service.ParkCarService;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * <p>
 * 停车场车辆关联表 服务实现类
 * </p>
 *
 * @author zsj
 * @since 2020-02-27
 * @version V1.0
 */
@Service
public class ParkCarServiceImpl extends DvaServiceImpl<ParkCarMapper, ParkCar> implements ParkCarService {

    @DvaCache5M
    @Override
    public DvaPage<ParkCar> page(DvaPage<ParkCar> page, Map<String, Object> param) {

        return baseMapper.page(page,param);
    }

    @Override
    public ParkCar selectByPlateAndParkId(String parkId, String carId) {
        return baseMapper.selectByPlateAndParkId(parkId,carId);
    }
}
